//
//  StackClass.hpp
//  Practice10
//
//  Created by 赵世杰 on 2020/7/25.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#ifndef StackClass_hpp
#define StackClass_hpp

#include <stdio.h>

#endif /* StackClass_hpp */

struct Customer {
    
    char fullname[35];
    double payment;
    
};


typedef Customer Item;




class Stack
{
private:
    enum {MAX =10};
    
    Item items[MAX];
    
    int top;
    
    
public:
    Stack();
    bool isempty() const;
    bool isfull() const;
    bool push(const Item & item);
    bool pop(Item & item);
    
    
};

